package com.huawei;

import java.util.Scanner;

public class HJ012 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        System.out.println(new StringBuilder(str).reverse());
    }
}
